#include <classes.h>
Public Member Functions | |
| void | loop () |
| void | play (int mode) |
| int | getMode () |
| void | changeMusic (int music) |
| void MusicPlayer::changeMusic | ( | int | music | ) | [inline] |
stops the current music, and then plays the new music of the mode changed.
| int MusicPlayer::getMode | ( | ) | [inline] |
Returns the current music mode.
| void MusicPlayer::loop | ( | ) | [inline] |
Main calls this loop, so that GDK can play the music. It checks the musicMode and makes it play the right music according to the appropiate action of the game.
| void MusicPlayer::play | ( | int | mode | ) | [inline] |
play- changes the music mode of the music object, so that it will loop a different music.
1.5.8